package wqh.service.impl;

import org.springframework.stereotype.Service;
import wqh.dao.SystemLogDao;
import wqh.domain.SystemLog;
import wqh.service.SystemLogService;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by devts on 2016/9/27.
 */
@Service("systemLogService")
public class SystemLogServiceImpl implements SystemLogService {

    @Resource
    private SystemLogDao systemLogDao;

    public int insertRecordSample(SystemLog systemLog) {
        return this.systemLogDao.insertRecordSample(systemLog);
    }

    public List<SystemLog> findAllRecord() {
        return this.systemLogDao.findAllRecord();
    }

    public List<SystemLog> findAllByLogType(String log_type) {
        return this.systemLogDao.findAllByLogType(log_type);
    }

    public List<SystemLog> findAllStart(String start) {
        return this.systemLogDao.findAllStart(start);
    }

    public List<SystemLog> findAllEnd(String end) {
        return this.systemLogDao.findAllEnd(end);
    }

    public List<SystemLog> findAllStartEnd(String start, String end) {
        return this.systemLogDao.findAllStartEnd(start,end);
    }

    public List<SystemLog> findAllLogTypeStart(String log_type, String start) {
        return this.systemLogDao.findAllLogTypeStart(log_type,start);
    }

    public List<SystemLog> findAllLogTypeEnd(String log_type, String end) {
        return this.systemLogDao.findAllLogTypeEnd(log_type,end);
    }

    public List<SystemLog> findAllLogTypeStartEnd(String log_type, String start, String end) {
        return this.systemLogDao.findAllLogTypeStartEnd(log_type, start, end);
    }

    public int count() {
        return this.systemLogDao.count();
    }
}
